package t2

import "errors"

/*
自动生成测试代码
https://github.com/cweill/gotests
*/
func Division(a, b float64) (float64, error) {
	if b == 0 {
		return 0, errors.New("除数不能为0")
	}

	return a / b, nil
}
